package com.platform.usercenter.service;

public interface ImService {

    public String getImTokenFromRedis(String flag);

    public void registerAllUserToIm() throws Exception;

    public void registerBatchUsers(Long[] userIds)throws Exception;

    public void updateImUserPwd(Long userId,String pwd)throws Exception;

    public void updateAllUserToIm() throws Exception;

    public void updateImUserPwdByUserName(String userName)throws Exception;

    public void updateImUserInfo(String userName)throws Exception;

    /**
     * 全量删除用户
     * @throws Exception
     */
    public void deleteImUser()throws Exception;

    /**
     * 批量删除用户
     * @param userIds
     * @throws Exception
     */
    public void  deleteBatchImUser(Long[] userIds) throws Exception;

    public void updateBatchUsers(Long[] userIds)throws Exception;
}
